package com.itxiuyixiu.volunteer.dto;

import com.itxiuyixiu.entity.enums.AccountState;

import javax.validation.constraints.Email;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;

/**
 * @author 黄磊
 * @date 2020/6/1
 */
public class AdminModifyDetailsMessageParam {
    @NotEmpty(message = "邮箱不能为空")
    @Email(message = "邮箱格式不正确")
    private String adminEmail;

    /**
     * 权限
     *
     * <p>假如有多个权限，使用英文逗号分割</p>
     */
    @NotEmpty(message = "权限不能为空")
    private String authorities;

    @NotEmpty(message = "昵称不能为空")
    private String nickName;

    @NotNull(message = "账号状态不能为空")
    private AccountState accountState;

    public String getAdminEmail() {
        return adminEmail;
    }

    public void setAdminEmail(String adminEmail) {
        this.adminEmail = adminEmail;
    }

    public String getNickName() {
        return nickName;
    }

    public void setNickName(String nickName) {
        this.nickName = nickName;
    }

    public String getAuthorities() {
        return authorities;
    }

    public void setAuthorities(String authorities) {
        this.authorities = authorities;
    }

    public AccountState getAccountState() {
        return accountState;
    }

    public void setAccountState(AccountState accountState) {
        this.accountState = accountState;
    }
}
